#include <fstream>
#include <string>
#include "big_integer.h"

int main()
{
   std::ifstream input("in.txt");
   std::ofstream output("out.txt");

   std::string s1, s2;

   while (input >> s1 >> s2)
   {
      big_integer a(s1);
      big_integer b(s2);

      if (b == 0)
      {
         output << "<error>" << "\n";
         output << "\n";
         continue;
      }

      quotient_and_remainder c = a / b;

      output << c << "\n";
      output << "\n";
   }

   return 0;
}